package com.panopset.gui;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JLabel;

import static com.panopset.Util.*;
import static com.panopset.gui.LookAndFeel.*;

public class TLabel extends JLabel {
    private static final long serialVersionUID = VERSION_SERIAL_NUMBER;
    private final Font DEFAULT_FONT = ARIAL_PLAIN_12;
    private final Color DEFAULT_FGCOLOR = Color.BLACK;

    public TLabel() {
        init();
    }

    public TLabel(String title) {
        this();
        setText(title);
    }

    public TLabel(Font labelFont) {
        this();
        setFont(labelFont);
    }

    public TLabel(Font labelFont, Color textColor) {
        this();
        setFont(labelFont);
        setForeground(textColor);
    }

    public TLabel(String title, Font labelFont) {
        this();
        setText(title);
        setFont(labelFont);
    }

    private void init() {
        setBackground(BG_COLOR);
        setFont(DEFAULT_FONT);
        setForeground(DEFAULT_FGCOLOR);
    }
}
